/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jonasLab.financistoweb.view.control;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

import br.jonasLab.financistoweb.control.MessagesControl;

/**
 *
 * @author jonas
 */
public class MessagesWeb extends MessagesControl{

    public MessagesWeb() {
        super();
    }

    @Override
    public void addMessage(String message) {
        FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_WARN, "Erro", getMessage(message));
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }

}
